/**
 * description：地址数据接口
 */

import { ADD_ADDRESS_URL, USER_ADDRESS_URL } from "../config/addressUrl.cfg";
import request from "./ajax";

// 获取用户收货地址的接口
export function userAddressApi(userId:string){
    return request({url:USER_ADDRESS_URL + userId })
}

// 新增用户地址接口
export function addAddressApi(data:addAddress){
    return request({
        url:ADD_ADDRESS_URL,
        data,
        method:'PUT'
    })
}